#ifndef ABSTRACTOBJECT_H
#define ABSTRACTOBJECT_H

#include "appGlobals.h"

class AbstractObject : public QObject
{
	Q_OBJECT
    friend class Document;
public:
	AbstractObject(QObject *parent, const QString& name);

	const QUuid& guid() const;
	const QString& name() const;
private:
	QString m_name;
private:
	void setGuid(const QUuid& guid);
	QUuid m_guid;
signals:
	void dataChanged();
public slots:
	void setName(const QString& name);
};

#endif // ABSTRACTOBJECT_H
